package com.esreport.dto;

import lombok.Data;

/**
 * 新闻信息组装
 */
@Data
public class ArticleInformation implements Comparable<ArticleInformation>{

    private Integer id;

    private String title;

    private String thumb;

    private Integer hitCount;

    private String PublishDate;

    private String type;

    @Override
    public int compareTo(ArticleInformation o) {
        return o.getHitCount().compareTo(this.getHitCount());
    }
}
